import Https from '@/utils/https'

const offlineDetail = (params) => Https.get('/api/v1/integration/offline/detail', params, { needCode: true })
const offlineTableFields = (params) => Https.post('/api/v1/integration/offline/table/fields', params, { needCode: true })
// taskLog
const taskLog = (params) => Https.get('/api/v1/offlineDev/task/log', params, { needCode: true })
// 停止任务
const stopTask = (params) => Https.post('/api/v1/offlineDev/task/stop', params, { needCode: true, json: false })
// 启动任务
const startFlowTask = (params) => Https.get('/api/v1/offlineDev/sync/start', params, { needCode: true })

export {
  offlineDetail, offlineTableFields, taskLog, stopTask, startFlowTask,
}
